<html><head><title>Tooltip Class</title><script language="JavaScript" src="../../_sharedassets/pages.js"></script></head><body><table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1" /></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%" /></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="11" width="1" /></td></tr></table><h1>Tooltip Class</h1><p><strong>Inheritance </strong>
			
			&gt;
			
		<a href="content_1d1a0dd4.htm">Tooltip</a></p><p><strong>ActionScript Class Name</strong> com.neoarchaic.ui.Tooltip</p><p>A Customizable static class for generating and displaying Tooltips from anywhere in your code.<br>
Must reside in a folder structure corresponding to the package: com.neoarchaic.ui.  There are no assests for the library, since the tooltip is created and drawn dynamically.<br>
</p><p>
The tooltip is created by invoking the static Tooltip class methods: Tooltip.show() and Tooltip.hide() (see method documentation for each method). <br>
</p><p>
This tooltip supports html and will use CSS to style the text, if the html option is set to true. The passed toolitp text will then be automatically enclosed in a <body> tag. The default value for the html option is false.
</p><p>
You can customize the tool both globally and locally.<br>
Globally: Set options one at a time by using the static setOption () method. <br>
To set multiple options in one go, set the public "options" property to an object containing one or more options (see example). <br>
Locally: Pass an object with the options to the static Tooltip.show () method.
In either case, only the options that have default values will be used, the rest will be ignored.
</p><p>
<b>Examples:</b><br>
<code>
import com.neoarchaic.ui.Tooltip; <br>
Tooltip.options = {html: true, width: 300}<br>
Tooltip.setOption("delay", 1) <br>
Tooltip.show("Hi, I'm a tooltip. \nI can have multiple lines and I also wrap around") <br>
Tooltip.show("Hi, I'm a delayed tooltip.", {delay: 2}) <br>
Tooltip.hide() <br>
</code>
</p><p>
<b>Author:</b><br>
Karina Steffens <br>
Neo-Archaic </br>
<a href = "http://www.neo-archaic.net" target = "_blank"> www.neo-archaic.net </a> <br>
February 2005</p><h3>
					Method summary for the Tooltip Class</h3><table border="0" cellpadding="0" cellspacing="0"><tr><th><p>Method </p></th><th><p>Description </p></th></tr><tr bgcolor="#F8F8F8"><td valign="top"><p><a href="content_a1ae59fa.htm"><code>Tooltip.hide()</code></a></p></td><td><p>Destroy or hide the Tooltip - if DepthManager is present, than the tooltip will be hidden.<br>
example: <code>Tooltip.hide()</code></p></td></tr><tr><td valign="top"><p><a href="content_6c16f59b.htm"><code>Tooltip.setOption()</code></a></p></td><td><p>Use to change a single default option globally .</p></td></tr><tr bgcolor="#F8F8F8"><td valign="top"><p><a href="content_a1a5faf9.htm"><code>Tooltip.show()</code></a></p></td><td><p>Show the Tooltip after a delay <br>
Example 1: (No options) <br>
<code>Tooltip.show ("Here is some example text for the static tooltip class"); </code><br>
Example 2: (One option) <br>
<code>Tooltip.show ("Here is some example text for the static tooltip class", {delay: 0}); </code><br>
Example 3: (Many options)<br>
<code>Tooltip.show ("Here is some example text for the static tooltip class", {delay:1, width:300, bgColor:0xFFFFFF, alpha:80, corner: 10, margiin:5, font: "Times New Roman", size: 14,  color: 0x000099, bold:true, html:true}); </code></p></td></tr></table><h3>
					Property summary for the Tooltip Class</h3><table border="0" cellpadding="0" cellspacing="0"><tr><th><p>Property </p></th><th><p>Description </p></th></tr><tr bgcolor="#F8F8F8"><td valign="top"><p><a href="content_8db9d5aa.htm"><code>Tooltip.options</code></a></p></td><td><p>Use to change multiple default options globally</p></td></tr></table><h3>
					Event summary for the Tooltip Class</h3><p>No events defined.</p><table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="_sharedassets/shim.gif" height="6" width="1" /></td></tr><tr><td colspan="2"><img src="_sharedassets/pixel.gif" height="1" width="100%" /></td></tr><tr><td colspan="2"><img src="_sharedassets/shim.gif" height="4" width="1" /></td></tr></table><br /><br /><hr /><span style='font-size: x-small; font-family: Verdana, Arial'>Documentation generated by <a href='http://wwww.blinex.com/products/bldoc' target='_blank' alt='BLDoc Link'>BLDoc Community Edition</a> from <a href='http://www.blinex.com' target='_blank' alt='B-Line Express Website'>B-Line Express</a>.</body></html>